home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung CD 2 (Tewi)(1994).iso
/
c
/
compiler
/
micro_c
/
lc86.bat
< prev
next >
Wrap
DOS Batch File
|
1992-02-23
|
751b
|
32 lines
@echo off
rem *
rem * Link object modules with libraries into ".COM" file
rem *
rem * Copyright 1988,1992 Dave Dunfield
rem *
echo MICRO-C 8086 Link Command by Dave Dunfield.
if .%1 == . goto help
if .%MCDIR% == . set MCDIR=\mc
if .%1 == .-s goto small
:tiny
echo Linking TINY model...
link/noi %MCDIR%\PC86RL_T %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,%MCDIR%\MCLIB;
if errorlevel 1 goto fail
echo Converting...
exe2bin %1 %1.COM
del %1.EXE
goto stop
:small
if .%2 == . goto help
echo Linking SMALL model...
shift
link/noi %MCDIR%\PC86RL_S %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,%MCDIR%\MCLIB;
if errorlevel 1 goto fail
goto stop
:help
echo Use: "%0 [-s] <filename(s)> ..."
goto stop
:fail
echo Link aborted due to errors!!!
:stop